﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.Util;

/* JUST A TOY CLASS FOR PLAYING WITH DISPLAYING DATA FROM THE DATABASE IN A LIST */

namespace StoveTop
{
	[Activity (Label = "StoveTopListActivity")]			
	public class StoveTopListActivity : ListActivity
	{
		string [] items;
		protected override void OnCreate (Bundle bundle)
		{
			Log.Debug ("StoveTopListActivity.OnCreate()", "Starting");
			base.OnCreate (bundle);

			items = Intent.GetStringArrayExtra ("list");
			for (int i = 0; i < items.Length; i++) {
				Log.Debug ("StoveTopListActivity.OnCreate()", "items[" + i.ToString () + "] = " + items [i]);
			}
			ListAdapter = new ArrayAdapter<String> (this, Android.Resource.Layout.SimpleListItem1, items);
		}
	}
}

